<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class E_FW</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> E_FW</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">E_FW 类</p>
<p class="description"><p>E_FW 类
 当使用框架时，只需引用本文件即可，并调用静态 E_FW 类的 run 方法即可。</p></p>
		<p class="notes">
			Located in <a class="field" href="_library---e_fw.php.html">/library/e_fw.php</a> (line <span class="field"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a67">67</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																								<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">mixed</span>
										<a href="#execute_Action" title="details" class="method-name">execute_Action</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$controllerName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$actionName</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$loadParam</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">mixed</span>
										<a href="#get_Config" title="details" class="method-name">get_Config</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$returnRoot</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/PrivateMethod.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#get_FilePath" title="details" class="method-name">get_FilePath</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">object</span>
										<a href="#get_view" title="details" class="method-name">get_view</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#import" title="details" class="method-name">import</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$dir</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">mixed</span>
										<a href="#load_Class" title="details" class="method-name">load_Class</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$className</span>, [<span class="var-type">bool</span>&nbsp;<span class="var-name">$isLoad</span> = <span class="var-default">true</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$loadParams</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#load_File" title="details" class="method-name">load_File</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$loadOnce</span> = <span class="var-default">true</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#run" title="details" class="method-name">run</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#set_Config" title="details" class="method-name">set_Config</a>
											(<span class="var-type">string/array</span>&nbsp;<span class="var-name">$params</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodexecute_Action" id="execute_Action"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">execute_Action</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a152">152</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">执行控制器调用</p>
<p class="description"><p>执行控制器调用
 <pre> 调用指定的控制器方法。
 如控制器存在 _beforeExecute 方法，则先调用 _beforeExecute 方法
 如控制器存在 _afterExecute 方法，则在调用指定方法后，再调用 _afterExecute 方法</pre></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			execute_Action
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$controllerName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$actionName</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$loadParam</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$controllerName</span><span class="var-description">: 控制器名称</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$actionName</span><span class="var-description">: 方法名称</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$loadParam</span><span class="var-description">: 加载类时的传递参数。可选</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_Config" id="get_Config"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">get_Config</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a352">352</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取全局变量</p>
<p class="description"><p>获取全局变量
 <pre> 可以获取所有的全局变量，或部分变量
 根据传入的数据路径决定，如在多层结点下，利用 / 号分隔。</pre>
 <div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-key">array</span><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'DSN'&nbsp;</span>=&gt;&nbsp;<span class="src-key">array</span><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'name'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'a'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'pwd'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'b'</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span><span class="src-sym">,</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'CACHE'&nbsp;</span>=&gt;&nbsp;<span class="src-id">true</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodget_Config">get_Config</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="src-comm">//获取所有</span></div></li>
<li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodget_Config">get_Config</a><span class="src-sym">(</span><span class="src-str">'DSN'</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="src-comm">//仅获取&nbsp;DSN&nbsp;结点</span></div></li>
<li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodget_Config">get_Config</a><span class="src-sym">(</span><span class="src-str">'DSN/name'</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="src-comm">//仅获取&nbsp;DSN&nbsp;结点下的&nbsp;name</span></div></li>
</ol></div></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			get_Config
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$returnRoot</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$path</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$returnRoot</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_FilePath" id="get_FilePath"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/PrivateMethod.png" />
		<span class="method-title">get_FilePath</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a407">407</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">分析文件路径</p>
<p class="description"><p>分析文件路径
 <pre> 按一定规则拆分输入的字符串参数为目录路径
 当检测到存在该文件时，返回正确的路径地址
 文件后缀必须为 .php
 在 linux 下，区分路径大小写</pre>
 <div class="src-code"><ol><li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodget_FilePath">get_FilePath</a><span class="src-sym">(</span><span class="src-str">'class_cache'</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="src-comm">//返回class/cache.php</span></div></li>
<li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodget_FilePath">get_FilePath</a><span class="src-sym">(</span><span class="src-str">'db_Mysql5.php'</span><span class="src-sym">)</span><span class="src-sym">;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="src-comm">//返回db/Mysql5.php</span></div></li>
</ol></div></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			get_FilePath
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_view" id="get_view"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">get_view</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a384">384</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取当前设定的模版类</p>
<p class="description"><p>获取当前设定的模版类</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object</span>
		<span class="method-name">
			get_view
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodimport" id="import"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">import</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a189">189</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">导入包含文件路径</p>
<p class="description"><p>导入包含文件路径</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			import
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dir</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dir</span><span class="var-description">: 目录地址</span>			</li>
				</ul>
		
			
	</div>
<a name="methodload_Class" id="load_Class"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">load_Class</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a212">212</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">加载类</p>
<p class="description"><p>加载类
 <pre> 首先检查全局变量中，是否已有该类的实例
 如没有，则调用 load_File 方法加载文件
 然后实例化该类，并保存到全局变量中，以便下次调用</pre></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			load_Class
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$className</span>, [<span class="var-type">bool</span>&nbsp;<span class="var-name">$isLoad</span> = <span class="var-default">true</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$loadParams</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$className</span><span class="var-description">: 类名</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$isLoad</span><span class="var-description">: 是否马上实例化该类</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$loadParams</span><span class="var-description">: 实例化参数</span>			</li>
				</ul>
		
			
	</div>
<a name="methodload_File" id="load_File"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">load_File</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a253">253</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">包含文件</p>
<p class="description"><p>包含文件
 <pre> 先调用 get_FilePath 方法解释路径
 然后在全局变量中检查是否已包含该文件
 如没有，则按照一定的规则，解释文件路径，并包含
 然后保存到全局变量，以便下次使用时无需重复包含</pre></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			load_File
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$loadOnce</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: 文件名</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$loadOnce</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrun" id="run"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">run</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a81">81</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">启动框架
 &lt;p&gt; 分析URL 如果是 url rewrite 模式，则从 $_GET 中获取，规则为 ?[controllerAccessor]=xxx&amp;[actionAccessor]=yyy&amp;zzz=111.</p>
<p class="description"><p>启动框架
   分析URL  如果是 url rewrite 模式，则从 $_GET 中获取，规则为  ?[controllerAccessor]=xxx&amp;[actionAccessor]=yyy&amp;zzz=111...  如果是 pathinfo 模式，规则为  /[controllerAccessor]/[actionAccessor]/key1/value1/key2/value2...</p><p></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			run
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodset_Config" id="set_Config"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">set_Config</span> (line <span class="line-number"><a href="../__filesource/fsource_Core__librarye_fw.php.html#a296">296</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">设定全局变量</p>
<p class="description"><p>设定全局变量
 <pre> 当传入一个字符串时，则假定为文件路径，程序会试图包含该文件
 并将该文件内的内容，追加到全局变量中。
 因此该文件内容必须为数组形式。
 如传入参数为数组时，则追加或覆盖全局变量</pre>
 <div class="src-code"><ol><li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodset_Config">set_Config</a><span class="src-sym">(</span><span class="src-str">'config/global.php'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodset_Config">set_Config</a><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array</span><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'LOAD_FILE_NAME'&nbsp;</span>=&gt;&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'config/global.php'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'config/global.php'</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<a href="../Core/E_FW.html#methodset_Config">set_Config</a><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">array</span><span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">'DSN/dbServer'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'192.168.0.10'</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></div></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			set_Config
		</span>
					(<span class="var-type">string/array</span>&nbsp;<span class="var-name">$params</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string/array</span>
				<span class="var-name">$params</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Tue, 02 Mar 2010 07:47:02 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>